package com.ywu.sentinel.sdk.dto;

import com.ywu.common.dto.CommonDto;
import lombok.Data;
import lombok.ToString;

/**
 * @ClassName YwuSystemRuleDto
 * @Description TODO
 * @Author GroundDemo
 * @Date 2025/4/14 17:31
 * @Version 1.0
 **/
@Data
@ToString
public class YwuSystemRuleDto extends CommonDto {
    public static final String SYSTEM_LOAD = "SYSTEM_LOAD";

    public static final String SYSTEM_RT = "SYSTEM_RT";

    public static final String SYSTEM_MAX_THREAD = "SYSTEM_MAX_THREAD";

    public static final String SYSTEM_QPS = "SYSTEM_QPS";

    public static final String SYSTEM_CPU = "SYSTEM_CPU";

    private String id;

    private String app;

    // 类型
    private String type;

    // RT 平均响应时间
    private Integer avgRt;

    // 系统自适应
    private Integer highestSystemLoad;

    // 最大线程数
    private Integer maxThread;

    // 全局QPS
    private Integer qps;

    // 最大CPU使用率
    private Double highestCpuUsage;

    private String sourceType;
}
